﻿using FriendStar.Code;
using FriendStar.Domain.Entity.BaseData;
using FriendStar.Domain.IRepository.BaseData;
using FriendStar.Repository.BaseData;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace FriendStar.Application.BaseData
{
    public class ZSJ_B1_GH_SIProductApp
    {
        //private IZSJ_B1_GH_SIProductRepository service = new ZSJ_B1_GH_SIRepository();
        //public List<ZSJ_B1_GH_SIEntity> GetList(string keyword)
        //{
        //    var expression = ExtLinq.True<ZSJ_B1_GH_SIEntity>();
        //    if (!string.IsNullOrEmpty(keyword))
        //    {
        //        expression = expression.And(t => t.UnitID.Contains(keyword));
        //        expression = expression.And(t => t.IsProduct == "0");

        //    }
        //    return service.IQueryable(expression).OrderBy(t => t.UseUnit).ToList();
        //}


        //public ZSJ_B1_GH_SIProductEntity GetForm(string keyValue)
        //{
        //    return service.FindEntity(keyValue);
        //}
        //public void DeleteForm(string keyValue)
        //{
        //    service.DeleteForm(keyValue);
        //}
        //public void SubmitForm(ZSJ_B1_GH_SIProductEntity userEntity, string keyValue)
        //{
        //    if (!string.IsNullOrEmpty(keyValue))
        //    {
        //        userEntity.Modify(keyValue);
        //    }
        //    else
        //    {
        //        userEntity.Create();
        //    }
        //    service.SubmitForm(userEntity, keyValue);
        //}
        //public void UpdateForm(ZSJ_B1_GH_SIProductEntity userEntity)
        //{
        //    service.Update(userEntity);
        //}

    }
}